﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Expect.Core.IO;
using System.IO;
using Expect.Core.Html;

namespace Expect.Core.Test.IO
{
    /// <summary>
    /// Summary description for HtmlReaderTest
    /// </summary>
    [TestClass]
    public class HtmlReaderTest
    {
        /*[TestMethod]
        public void ExecuteFromHtml()
        {
            Assert.Inconclusive("This test must be refactored");
            string fname = "SampleHtmlSpec.htm";
            string specText = Helper.LoadFromRessourceFile(fname);
            SpecificationDefinition spec = new HtmlSpecificationReader().ReadSpecification(fname, specText);
            
            SampleSpecificationCheck.CheckSpecification(this, spec,false);
            var writer = new HtmlSpecificationWriter();
            
            using (FileStream fs = new FileStream(@"C:\temp\test.htm", FileMode.OpenOrCreate, FileAccess.Write))
            {
                writer.Write(fs,spec,true,true);
            }
            //SampleSpecificationCheck.ExecuteFromText(
            //    new HtmlSpecificationReader(),
            //    "SampleHtmlSpec.htm"
            //    );
        }

        [TestMethod]
        [Ignore]
        public void ExecuteFromStream()
        {
            SampleSpecificationCheck.ExecuteFromStream(
                this,
                new HtmlSpecificationReader(),
                "SampleHtmlSpec.htm"
                );
        }*/
    }
}
